A Rust library to support testing of code that uses log crate.
Example
#[macro_use]externcrate log;uselog::Level;externcrate testing_logger;#[test]fntest_something(){testing_logger::setup();warn!("Something went wrong with {}",10);testing_logger::validate(|captured_logs|{assert_eq!(captured_logs.len(),1);assert_eq!(captured_logs[0].body,"Something went wrong with 10");assert_eq!(captured_logs[0].level,Level::Warn);});}